package com.ssy.lingxi.platform.manage.api.hystrix.inner;

import com.ssy.lingxi.common.model.dto.MemberAndRoleIdDTO;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.api.feign.inner.ShopControllerFeign;
import com.ssy.lingxi.platform.manage.api.model.dto.common.CommonIdListDTO;
import com.ssy.lingxi.platform.manage.api.model.dto.shop.SelfBusinessShopLogoDTO;
import com.ssy.lingxi.platform.manage.api.model.dto.shop.TemplateIdDTO;
import com.ssy.lingxi.platform.manage.api.model.vo.shop.SelfBusinessShopLogoVO;
import com.ssy.lingxi.platform.manage.api.model.vo.shop.ShopInnerVO;
import com.ssy.lingxi.platform.manage.api.model.vo.shop.ShopVO;
import org.springframework.stereotype.Component;

import javax.validation.Valid;
import java.util.List;

@Component
public class ShopControllerFeignFallback implements ShopControllerFeign {

    @Override
    public Wrapper<List<SelfBusinessShopLogoVO>> findSelfBusinessShopLogo(SelfBusinessShopLogoDTO dto) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<List<Long>> findSelfBusinessShopId(MemberAndRoleIdDTO dto) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<List<ShopInnerVO>> shopByIds(@Valid CommonIdListDTO request) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<List<ShopVO>> shopAll() {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<List<ShopVO>> findAllByShopTypeAndEnvironment(Integer shopType, Integer environment) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<List<ShopVO>> shopByIdList(@Valid CommonIdListDTO request) {
        return Wrapper.failService("服务调用异常");
    }

    @Override
    public Wrapper<List<ShopVO>> byShopIds(@Valid CommonIdListDTO request) {
        return Wrapper.failService("服务调用异常");
    }

}
